<?php


namespace App\Http\Controllers\Frontend\Rotation;

use App\Http\Service\frontend\RotationService;
use App\Http\Controllers\Frontend\ApiController;

class IndexController extends ApiController
{
    private $rotationService;

    public function __construct(RotationService $rotationService)
    {
        $this->rotationService = $rotationService;
    }

    public function index()
    {
        return $this->success($this->rotationService->index());
    }
}
